package com.ypf.delaycancelorder.service;

import com.ypf.delaycancelorder.entity.Order;
import org.springframework.stereotype.Service;

@Service
public interface IOrderService {

    /**
     * 新增订单
     * @param order
     * @return
     */
    void insert(Order order);

    /**
     * 更新订单状态
     * @param orderNo
     * @param status
     * @return
     */
    void updateByOrderNo(String orderNo,Integer status );

    /**
     * 查找订单
     * @param orderNo
     * @return
     */
    Order findByOrderNo(String orderNo);



}
